<template>
  <div class="q-pa-md">
    <t-layout
      view="hHh Lpr lff"
      container
      style="height: 300px"
      class="shadow-2 rounded-borders"
    >
      <t-drawer
        v-model="drawerLeft"
        class="bg-primary text-white"
      >
        awdwadawdawdawdawd
      </t-drawer>
    </t-layout>

    <t-layout
      view="hHh Lpr lff"
      container
      style="height: 300px"
      class="shadow-2 rounded-borders"
    >
      <t-header
        elevated
        :class="$q.dark.isActive ? 'bg-secondary' : 'bg-black'"
      >
        <t-toolbar>
          <t-btn
            flat
            @click="drawerLeft = !drawerLeft"
            round
            dense
            icon="menu"
          />
          <t-toolbar-title>Header</t-toolbar-title>
          <t-btn
            flat
            @click="drawerRight = !drawerRight"
            round
            dense
            icon="menu"
          />
        </t-toolbar>
      </t-header>

      <t-drawer
        v-model="drawerLeft"
        class="bg-primary text-white"
      >
        <t-scroll-area class="fit">
          <div class="q-pa-sm">
            <div v-for="n in 50" :key="n">Drawer {{ n }} / 50</div>
          </div>awdawdawd
        </t-scroll-area>
        awdwadawdawdawdawd
      </t-drawer>

      <!-- <t-drawer
        side="right"
        v-model="drawerRight"
        show-if-above
        bordered
        :width="200"
        :breakpoint="500"
        :class="$q.dark.isActive ? 'bg-grey-9' : 'bg-grey-3'"
      >
        <t-scroll-area class="fit">
          <div class="q-pa-sm">
            <div v-for="n in 50" :key="n">Drawer {{ n }} / 50</div>
          </div>
        </t-scroll-area>
      </t-drawer>

      <t-page-container>
        <t-page padding>
          <p v-for="n in 15" :key="n">
            Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugit nihil
            praesentium molestias a adipisci, dolore vitae odit, quidem
            consequatur optio voluptates asperiores pariatur eos numquam rerum
            delectus commodi perferendis voluptate?
          </p>
        </t-page>
      </t-page-container> -->
    </t-layout>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        drawerLeft: ref(false),
        drawerRight: ref(false),
      };
    },
  };
</script>
